<?php
/**
 * 默认
 * Enter description here ...
 * @author nijn
 *
 */
class IndexController extends FrontController{

	/**
	 * actionIndex 默认首页
	 * actionRegister 注册
	 * actionLogout 注销
	 * actionsLogin 登录
	 */
    /*
     * 默认首页
     */
    public function actionIndex(){
		$this->render('index');
    }

    public function actionScuess() {
    	$this->render('scuess');
    }

    public function actions() {
    	return array(
    		'captcha'=>array(
				'class'=>'CCaptchaAction',
				'backColor'=>0xFFFFFF,
				'minLength' => 4,
				'maxLength' => 4,
				'width' => '80',
				'height' => '40',
				'testLimit' => 0
			),
    		'register' => array(
    			'class' => 'application.components.actions.front.RegisterAction',
    			'returnUrl' => array('scuess'),
    			'modelName' => 'MemberAccount',
    			'view' => 'register'
    		),
			'login' => array(
    			'class' => 'application.components.actions.front.LoginAction',
    			'returnUrl' => array('scuess'),
    		),
    		'logout' => array(
    			'class' => 'application.components.actions.front.LogoutAction',
    			'returnUrl' => array('index')
    		),
    	);
    }


}

?>